class TElement {
    short posX, posY;
    byte repetition, offset;
    byte[] tiles;
}